package com.xiaochen.cart;

import com.xiaochen.common.anno.EnableUserLoginAuthInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 购物车模块启动类
 *
 * @author pinkhors
 */
// 排除数据库的自动化配置
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
// 通过nacos + feign实现服务间远程调用
@EnableFeignClients(basePackages = {"com.xiaochen"})
// 因为要从ThreadLocal中获取用户信息
@EnableUserLoginAuthInterceptor
public class CartApplication {

    public static void main(String[] args){
        SpringApplication.run(CartApplication.class, args);
    }
}
